package modelo.dao.jpa;

import interfaces.Factory;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPAFactory implements Factory {

	static EntityManagerFactory getInstanceManagerFactory() {		
		return Persistence.createEntityManagerFactory("mysql");
	}

	public JPAUserDAO createUserDao() {
		return new JPAUserDAO();
	}

}